<?php
/**
 *  ScrapControl Class
 *
 *  
 *
 *  @author     Vinod Kumar
 *  @version    $Revision: 1.0$
 *  @package    Project Name
 *
 */
class ScrapControl extends MainControl {

	private $scrapFacade;
	
	/**
     *  __construct
     *
     *  Set up request object & MainPage object
     *
     *  @param  object  request Request object
     */
	public function __construct($request) {

		$this->scrapFacade = new ScrapFacade();
		$this->request = $request;
		$this->mainPage = new MainPage();
	}/* END __construct */

	/**
     *  LoadAllScrap
     *
     *  Load user's scraps
     */
	public function loadAllScrap() {
	    
	    $allScraps = $this->scrapFacade->fetchScrapsByUserId($userId);
	    //set $allScraps to request object
	    //call scrap list page from 'View'
	}/* END LoadAllScrap */
	
	/**
     *  postScrap
     *
     *  Post a scrap to a user
     */	
	public function postScrap() {
		
	}/* END postScrap */
	
	/**
     *  delScrap
     *
     *  Post a scrap to a user
     */	
	public function delScrap() {
		
	}/* END delScrap */
	
}/*END ScrapControl*/
?>